        
<table id="searchTable">
    <tr>
        <th w_num="line" width="3%;">序号</th>
        <th w_index="sid" width="5%;">主键</th>
        <th w_index="title"  width="30%;">活动标题</th>
        <th w_index="start_time"  width="15%;">开始时间</th>
        <th w_index="end_time" width="15%;">结束时间</th>
        <th w_index="number" width="15%;">参与人数</th>
      
        <th w_render="operate" width="10%;">操作</th>
    </tr>
</table>
<script type="text/javascript">
    var gridObj;
    $(function () {
        gridObj = $.fn.bsgrid.init('searchTable', {
            url: '__URL__/loadlist',
            // autoLoad: false,
            pageSizeSelect: true,
            pageSize: 10,
            rowHoverColor: true
        });
    });

    function operate(record, rowIndex, colIndex, options) {
	  var id = gridObj.getRecordIndexValue(record, 'sid');
	  var title = gridObj.getRecordIndexValue(record, 'title');
	 
        //return '<a href="#" onclick="alert(\'ID=' + gridObj.getRecordIndexValue(record, 'sid') + '\');">Operate</a>';
		return '<a href="__URL__/userList?id='+id+'" title="候选人">候选人</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="__URL__/addActivity?id='+id+'" title="投票规则">投票规则</a>&nbsp;&nbsp;&nbsp;&nbsp; <a href="javascript:confirmDelete('+id+')"  name="'+title+'" title="删除">删除</a>';
    }
</script>